<?php
switch($Invoice->getStatus()->getCode()){
	case InvoiceStatusTable::STATUS_PENDING:
		?>
		<ul>
			<?php 
			foreach($Invoice->getPayments() as $Payment){
			?>
			<li>
					<?php echo $Payment->getPaymentStatus() ?>
			</li>
			<?php 		
			}
			
			?>
			<li>
				<a href="<?php echo url_for("register_payment_invoice_step1",array( "invoice_id"=>$Invoice->getId()) ) ?>"><?php echo __("Registrar un Pago")?></a>
			</li>
		</ul>
		<?php 
		break;
	case InvoiceStatusTable::STATUS_CLOSED:
		echo $Invoice->getStatus();
		break;
	case InvoiceStatusTable::STATUS_CANCELED:
		echo $Invoice->getStatus();
	break;
}
